(lambda (id)
  (.done (/api "sampler/spawn" id)
    (lambda (state) (console.log "spawned sampler" id state))
    (/lib/error (+ "could not spawn sampler " id))))
